﻿<?php 
include 'header.php';
include 'fun.php';
date_default_timezone_set('prc');
    $sql="select * from data";
    $arr=getarr($sql);
    $day=$arr[0][day];
$month=$arr[0][month];
$year=$arr[0][year];
$zero1=date("y-m-d");
$zero2="$year-$month-$day";
if(strtotime($zero1)<strtotime($zero2)){
    $ss=true; //没有截止
}
else 
    $ss=false;//截止了

?>
 <script>
  function clickhand(){
	   alert("抱歉报名截止了");
  }
 </script>
<div id="button">
<form> <a <?php if($ss){?>href="submit.php"<?php }?>><input name="button" type="button" value="投简历" style="	width: 200px;height: 80px;font-size:30px"
<?php if(!$ss){?>onClick="clickhand()"<?php }?>/></a> 
<a href="dump.php"><input name="button" type="button" value="查看职位描述" style="	width: 200px;height: 80px;font-size:30px"/></a>
</form>
</div>

</html>
